import request from "@/utils/request";

// 修改访客雷达分组排序
export function sortRadarCategory(params) {
  return request({
    url: '/admin/visitorRadar/sortRadarCategory',
    method: 'post',
    data: params,
  })
}

// 删除雷达前校验
export function queryRadarCount(params) {
  return request({
    url: '/admin/visitorRadar/queryRadarCount',
    method: 'get',
    params,
  })
}

// 迁移删除的雷达分组
export function delRadarCategory(params) {
  return request({
    url: '/admin/visitorRadar/delRadarCategory',
    method: 'post',
    data: params,
  })
}

// 查询访客雷达列表
export function queryRadarInfoList(params) {
  return request({
    url: '/admin/visitorRadar/queryRadarInfoList',
    method: 'get',
    params,
  })
}

// 新增访客雷达
export function addVisitorRadar(params) {
  return request({
    url: '/admin/visitorRadar/addVisitorRadar',
    method: 'post',
    data: params,
  })
}

// 获取投放渠道枚举
export function querySourceId(params) {
  return request({
    url: '/admin/visitorRadar/querySourceId',
    method: 'post',
    data: params,
  })
}

// 删除访客雷达
export function delRadarInfo(params) {
  return request({
    url: '/admin/visitorRadar/delRadarInfo',
    method: 'get',
    params,
  })
}

// 修改访客雷达状态
export function changeRadarUseFlag(params) {
  return request({
    url: '/admin/visitorRadar/changeRadarUseFlag',
    method: 'post',
    data: params,
  })
}

// 查询访客雷达明细
export function queryRadarInfo(params) {
  return request({
    url: '/admin/visitorRadar/queryRadarInfo',
    method: 'get',
    params,
  })
}

// 修改访客雷达信息
export function updateRadarInfo(params) {
  return request({
    url: '/admin/visitorRadar/updateRadarInfo',
    method: 'post',
    data: params,
  })
}

// 查询执行员工
export function queryUserList(params) {
  return request({
    url: '/admin/visitorRadar/queryUserList',
    method: 'get',
    params,
  })
}

// 获取访客雷达分析头部数据
export function queryRadarData(params) {
  return request({
    url: '/admin/visitorRadar/queryRadarData',
    method: 'get',
    params,
  })
}

// 获取客户分析数据
export function queryCustomerRadarData(params) {
  return request({
    url: '/admin/visitorRadar/queryCustomerRadarData',
    method: 'get',
    params,
  })
}

// 获取员工分析数据
export function queryUserRadarData(params) {
  return request({
    url: '/admin/visitorRadar/queryUserRadarData',
    method: 'get',
    params,
  })
}
